import pytest

from interface.CartInterface import CartInterface
from interface.Memberiniterce1 import MemberInterface
data = {'username':'ymYM','password':'654321'}

@pytest.fixture(scope='session')
def headers(url1):
    return MemberInterface(url1).get_token(data["username"], data["password"])


@pytest.fixture(scope="session")
def url(url="http://47.108.206.100:8085"):
    return url

@pytest.fixture()
def cart(url,headers):
    return CartInterface(url,headers)

@pytest.fixture()
def order(url,headers):
    return CartInterface(url,headers)
